//
//  CLWritingFormatEnum.h
//  CLBasicsDemo
//
//  Created by 小草毋正 on 2017/9/12.
//  Copyright © 2017年 zbw. All rights reserved.
//

#import <Foundation/Foundation.h>


#pragma mark- 普通枚举

typedef enum : NSUInteger {
    CLWritingFormatEnumNormalA,
    CLWritingFormatEnumNormalB,
    CLWritingFormatEnumNormalC,
} CLWritingFormatEnumNormal;


#pragma mark- 可按位操作的枚举

typedef enum : NSUInteger {
    CLWritingFormatEnumBitA,
    CLWritingFormatEnumBitB,
    CLWritingFormatEnumBitC,
} CLWritingFormatEnumBit;



#pragma mark- 普通枚举OC

//NS_ENUM，定义状态等普通枚举
typedef NS_ENUM(NSUInteger, CLWritingFormatEnumNormalOC) {
    CLWritingFormatEnumNormalOCA = 0,
    CLWritingFormatEnumNormalOCB,
    CLWritingFormatEnumNormalOCC
};


#pragma mark- 可按位操作的枚举OC

//NS_OPTIONS，定义选项
typedef NS_OPTIONS(NSUInteger, CLWritingFormatEnumNormalOCBit) {
    CLWritingFormatEnumNormalOCBit0 = 0,
    CLWritingFormatEnumNormalOCBit1 = 1 << 0,
    CLWritingFormatEnumNormalOCBit2 = 1 << 1,
    CLWritingFormatEnumNormalOCBit4 = 1 << 2,
    CLWritingFormatEnumNormalOCBit8 = 1 << 3
};


@interface CLWritingFormatEnum : NSObject



@end














